package icu.javacg.storage.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 消防器材表
 * @TableName fire_equipment
 */
@TableName(value ="fire_equipment")
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@EqualsAndHashCode
public class FireEquipment implements Serializable {
    /**
     * 每个消防器材在系统中都有一个唯一的编号。
     */
    @TableId(value = "fire_equipment_id")
    private Integer fireEquipmentId;

    /**
     * 消防器材的名称，例如灭火器、消防栓等。
     */
    @TableField(value = "fire_equipment_name")
    private String fireEquipmentName;

    /**
     * 消防器材的位置，例如在哪个仓库或区域。
     */
    @TableField(value = "fire_equipment_location")
    private String fireEquipmentLocation;

    /**
     * 消防器材的保质期
     */
    @TableField(value = "quality_guarantee_period")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date qualityGuaranteePeriod;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}